//
//  HomeFlowLayout.m
//  QuickCure1
//
//  Created by 李江波 on 2016/10/31.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "HomeFlowLayout.h"

@implementation HomeFlowLayout

-(void)prepareLayout{

    [super prepareLayout];
    
    CGFloat width = (SCREEN_WIDTH - 2.4) / 3;
    CGFloat hight = (SCREEN_HEIGHT - 64 - (110 + 200)/667.0*SCREEN_HEIGHT - 30 - 1.2 ) /2;
    
    self.itemSize = CGSizeMake(width, hight);
    
    self.minimumLineSpacing = 1.5;
    self.minimumInteritemSpacing = 1.0;
    
    self.headerReferenceSize = CGSizeMake(SCREEN_WIDTH, SCREEN_HEIGHT -(64 + 310/667.0*SCREEN_HEIGHT + hight + hight + 1.2));
    
    
}

@end
